﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using YouHP.Utility;

namespace YouHP.Model.Group
{
    public class GroupUserInfo : IHydratable
    {    
        public int Id { get; set; }           
        public int GroupId { get; set; }
        public string GroupName { get; set; }
        public int UserId { get; set; }
        public string UserName { get; set; }
        public int Role { get; set; }               // 用户在组中角色
        public int TopicCount { get; set; }         // 发帖数
        public int ReplyCount { get; set; }         // 回复数
        public int PostCount { get; set;  }         // 发帖数+回复数
        public DateTime JoinTime { get; set; }      // 加入时间
        public string UserAvatar { get; set; }

        public GroupUserInfo()
        {
            Role = Constants.RoleNoExsit;
        }

        #region IHydratable 成员

        bool IHydratable.Fill(System.Data.IDataReader dr)
        {
            return false;
        }

        #endregion
    }
}
